package tool

import (
	"encoding/json"
)

func Array2string(arr []string) string {

	// 将数组转换为JSON格式的字符串
	jsonBytes, _ := json.Marshal(arr)
	str := string(jsonBytes)

	if str == "[]" {
		return ""
	}

	return str
}
